<?php

/**
 * 路由配置
 */
return array(
    'default_namespace' => 'application\controllers',
    'default_controller' => 'site',
    /* 规则 */
    'rules' => array(
        'openapi/(:controller)(:action)' => array('openapi' => '$1$2'), // {module}=>{controller}{action}
        'h5/(:controller)(:action)' => array('h5' => '$1$2'), // {module}=>{controller}{action}
        '(:controller)(:action)' => array('web' => '$1$2'), // {module}=>{controller}{action}
    ),
    /* 模块 */
    'module_namespace' => array(
        'openapi' => BASE_PATH . 'application' . DIRECTORY_SEPARATOR . 'modules',
        'h5' => BASE_PATH . 'application' . DIRECTORY_SEPARATOR . 'modules',
        'web' => BASE_PATH . 'application' . DIRECTORY_SEPARATOR . 'modules',
    )
);
